<include file="Public:header"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <include file="Public:nav"/>
    <div class="h_a">搜索</div>
    <form method="post" action="{:U('index')}">
        <input type="hidden" value="1" name="search">
        <div class="search_type cc mb10">
            <div class="mb10">
        <span class="mr20">时间：
        <input type="text" name="start_time" class="input length_2 J_date" value="{$Think.get.start_time}" style="width:80px;">-<input type="text" class="input length_2 J_date" name="end_time" value="{$Think.get.end_time}" style="width:80px;">
        <select class="select_2" name="status" style="width:70px;">
            <option value='2' <if condition=" $status == 2 "> selected</if>>全部</option>
            <option value="1" <if condition=" $status == 1 "> selected</if>>已审核</option>
            <option value="0" <if condition=" $status == 0 "> selected</if>>未审核</option>
        </select>
            <select class="select_2" name="menu" id="">
                <option value="">全部栏目</option>
                <option value="1" <eq name="menu" value="1">selected</eq>>首页</option>
                <option value="2" <eq name="menu" value="2">selected</eq>>动态</option>
                <option value="3" <eq name="menu" value="3">selected</eq>>头条</option>
                <option value="4" <eq name="menu" value="4">selected</eq>>随手拍</option>
                <option value="5" <eq name="menu" value="5">selected</eq>>积分换礼</option>
                <option value="6" <eq name="menu" value="6">selected</eq>>免费试用</option>
                <option value="7" <eq name="menu" value="7">selected</eq>>优品汇</option>
                <option value="8" <eq name="menu" value="8">selected</eq>>作品详情页</option>
                <option value="9" <eq name="menu" value="9">selected</eq>>个人中心</option>
            </select>
        关键字：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$_GET.keyword}" placeholder="请输入关键字...">
        <button class="btn">搜索</button>
        </span>
            </div>
        </div>
    </form>
    <form name="myform" action="" method="post" class="J_ajaxForm">
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td width="4%"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></td>
                <td width="8%">排序</td>
                <td width="5%">序号</td>
                <td width="5%">审核</td>
                <td width="8%">所属栏目</td>
                <td width="8%">位置</td>
                <td>标题</td>
                <td width="15%">管理操作</td>
            </tr>
            </thead>
            <foreach name="list" item="vo">
                <tr>
                    <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.id}"></td>
                    <td><input name="sort[{$vo.id}]" type="text" size="3" value="{$vo.sort}" class="input"></td>
                    <td>{$vo.id}</td>
                    <td>{$vo.status|showStatus}</td>
                    <td>{$vo.menu|getAdertMenu}</td>
                    <td>{$vo.position|getAdertPosition}</td>
                    <td><a href="{:U("Advert/edit",array("id"=>$vo[id]))}">{$vo.title}</a><if condition="$vo.image neq ''"><font color="red">图</font> </if></td>
                    <td><a href="{:U('Advert/edit',array('id'=>$vo[id]))}">修改</a> <a class="J_ajax_del" data-msg="确定删除该信息吗?" href="{:U('Advert/delete',array('id'=>$vo['id']))}">删除</a></td>
                </tr>
            </foreach>
        </table>
        <div class="p10"><div class="pages"> {$Page} </div> </div>
        <div class="btn_wrap">
            <div class="btn_wrap_pd">
                <label class="mr20 sel-all"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Advert/sort')}">排序</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Advert/batch',array('do'=>'checkpass'))}">审核</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Advert/batch',array('do'=>'cancelpass'))}">取消审核</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-msg="确认删除这些信息?" data-subcheck="true" data-action="{:U('Advert/deleteAll')}">删除</button>
            </div>
        </div>
    </div>
</div>
</form>
</div>
<script src="__JS__/common.js"></script>
</body>
</html>